<!DOCTYPE html>
<html>
<head>
    <title>TOOL</title>
    <meta charset="UTF-8">

    <link rel="stylesheet" href="admin/js/vendor.css" type="text/css" />
    <link rel="stylesheet" href="admin/js/index.css" type="text/css" />

</head>
<body>
    <div class="app">
        <div class="left">
            <div :class="{'is-active': actIndex == index}" v-for="(btn,key,index) in leftBtn" v-on:click="page(btn.type,index)">{{btn.name}}</div>
        </div>
        <div class="right">
            <component v-bind:is="pCp" @show-cover="showCover"></component>
        </div>
        <div class="backdrop" v-if="cover"></div>
    </div>
    <div class="temp"></div>
</div>

<script type="text/javascript">
    window.CFG = {
        api : {
            mac: {
                frontScan: '/?c=items_ctrl&m=front_scan', //前端
                getCats: '/?c=cats_ctrl&m=get_cats', //前端

                /*
                 catsId: 分类ID (getCats接口中有每个分类数据中都有value,包括子分类)
                 pageNo: 当前页数,
                 pageSize: 每页显示多少个
                 keyWord: 商品名
                 (每个商品已经返回了评价和标签)
                 */
                getItems: '/?c=items_ctrl&m=get_items', //前端
                setItem: '/?c=items_ctrl&m=set_item',

                getRates:'/?c=rates_ctrl&m=get_rates',
                setContent: '/?c=rates_ctrl&m=set_content',
                setTags: '/?c=rates_ctrl&m=set_tags',

                /*
                 catsId: 分类ID (getCats接口中有每个分类数据中都有value,包括子分类)
                 pageNo: 当前页数,
                 pageSize: 每页显示多少个
                 keyWord: 商品名
                 (每个商品已经返回了评价和标签)
                 */
                getMakeupFront:"/?c=makeup_ctrl&m=get_makeup_front",  //前端
                getMakeup:"/?c=makeup_ctrl&m=get_makeup",
                saveMakeup:"/?c=makeup_ctrl&m=save_makeup",
                getMakeupTmpl: "/?c=makeup_ctrl&m=get_makeup_tmpl",
                saveMakeupTmpl:"/?c=makeup_ctrl&m=save_makeup_tmpl",

                //传入base64的图片数据
                upPhoto: '/?c=photo_ctrl&m=up_photo', //前端

                /*
                 pageNo: 当前页数,
                 pageSize: 每页显示多少个
                 */
                getVideo:"/?c=video_ctrl&m=get_video",  //前端
                saveVideo:"/?c=video_ctrl&m=save_video",
                deleteVideo:"/?c=video_ctrl&m=delete_video",

                /*
                 pageNo: 当前页数,
                 pageSize: 每页显示多少个
                 */
                getChart:"/?c=chart_ctrl&m=get_chart",  //前端
                saveChart:"/?c=chart_ctrl&m=save_chart",
                deleteChart:"/?c=chart_ctrl&m=delete_chart",


                getAbout:"/?c=about_ctrl&m=get_about",  //前端
                saveAbout:"/?c=about_ctrl&m=save_about"
            },
            top: {
                getScanAllItems : '/?c=top_ctrl&m=scan_all_item',
                getImages:"/?c=top_ctrl&m=image_list",
                getImageCats:"/?c=top_ctrl&m=image_cats",

                getTraderate : '/?c=top_ctrl&m=get_traderate',
                getTags : '/?c=top_ctrl&m=get_tags'
            }
        }
    };
</script>

<script src="admin/js/vendor.js"></script>
<script src="admin/js/index.js"></script>

</body>
</html>
